﻿using AutoClub.Core.Domain;
using AutoClub.Core.Domain.Dao;

namespace AutoClub.Core.Dao.Implementations
{
    /// <summary>
    /// Represents a Repository of Users.
    /// </summary>
    public class UserRolesRepo : BaseRepo<int, UserRol>, IUserRolesRepo
    {
        #region Constructor

        public UserRolesRepo(IUnitOfWork uof)
            : base(uof, (uof.Context as AutoClubDataContext).UserRoles, null)
        {
        }

        #endregion

        public UserRol Get(UserRolEnum id)
        {
            return base.Get((int)id);
        }
    }
}
